com.supermap.ar.areffect

Class ARAnimationParameter

  • java.lang.Object
    • com.supermap.ar.areffect.ARAnimationParameter


  • public class ARAnimationParameter
    extends java.lang.Object
    AR animation parameters
    • Constructor Detail

      • ARAnimationParameter

        public ARAnimationParameter()
    • Method Detail

      • setDuration

        public void setDuration(java.lang.Long duration)
        Sets the circle of playing animations
        Parameters:
        duration - the circle
      • getDuration

        public long getDuration()
        Gets the circle paramters of AR animations
        Returns:
        period parameters
      • setRepeatCount

        public void setRepeatCount(int count)
        Sets how many times an animation cycles
        Parameters:
        count - the times -1 means keep cycling an animation
      • getRepeatCount

        public int getRepeatCount()
        Gets the times of cycling an AR animation parameters
        Returns:
        the number of loops
      • setRepeatMode

        public void setRepeatMode(ARAnimationRepeatMode Mode)
        Sets the playing modes of animations. These modes can't work on default animations.
        Parameters:
        Mode - 1 means playing an animation from the start. 2 means reversing the playing direction of an animation when playing it. -1 means no time limitation.
      • getRepeatMode

        public ARAnimationRepeatMode getRepeatMode()
        Gets the display of an animation. 1 means playing it from the start. 2 means reversing its playing direction. -1 means no time limitation.
        Returns:
        animation displays
      • setStartDelay

        public void setStartDelay(long delay)
        Startup delay
        Parameters:
        delay - the delayed time
      • getStartDelay

        public long getStartDelay()
        Gets the delayed time
        Returns:
        time
      • setRotationAxis

        public void setRotationAxis(Vector rotationAxis)
        Sets a rotation axis. When rotating an animation, the parameter is required. Y axis is by default.
        Parameters:
        rotationAxis - Only is it used for rotating animations
      • getRotationAxis

        public Vector getRotationAxis()
        Gets the rotation axis
        Returns:
        Only is it used for rotating animations
      • setClockwise

        public void setClockwise(boolean clockwise)
        Sets the rotation direction (whether to rotate an animation clockwise. false is by default ) Only is it used for rotating animations
        Parameters:
        clockwise - the rotation direction
      • setStartPosition

        public void setStartPosition(Point3D startPosition)
        Sets the starting point.
        Parameters:
        startPosition - the position of the starting point
      • getStartPosition

        public Point3D getStartPosition()
        Gets the starting point
        Returns:
        the starting point
      • setEndPosition

        public void setEndPosition(Point3D endPosition)
        Sets the ending point
        Parameters:
        endPosition - the ending point
      • getEndPosition

        public Point3D getEndPosition()
        Gets the ending point
        Returns:
        the ending point
      • getStartLocation

        public Location getStartLocation()
        Gets the geographical position of the starting point
        Returns:
      • setStartLocation

        public void setStartLocation(Location startLocation)
        Sets the geographical position of the starting point
        Parameters:
        startLocation -
      • getEndLocation

        public Location getEndLocation()
        Gets the geographical position of the ending point
        Returns:
      • setEndLocation

        public void setEndLocation(Location endLocation)
        Sets the geographical position of the ending point of animation
        Parameters:
        endLocation -